const mix = require('laravel-mix');

/*
 |--------------------------------------------------------------------------
 | Mix Asset Management
 |--------------------------------------------------------------------------
 |
 | Mix provides a clean, fluent API for defining some Webpack build steps
 | for your Laravel applications. By default, we are compiling the CSS
 | file for the application as well as bundling up all the JS files.
 |
 */
// mix.postCss("resources/css/font.css", "public/css/font.css");
// mix.postCss("resources/css/login.css", "public/css/login.css");
// mix.postCss("resources/lib/layui/layui.css", "public/lib/layui/layui.css");
// mix.postCss("resources/css/xadmin.css", "public/css/xadmin.css");

mix.js('resources/js/app.js', 'public/js')

    .sass('resources/assets/sass/app.scss', 'public/css')
    .postCss('resources/css/app.css', 'public/css', [

    ]).version();//尾部加上version()使得mix每次生成的静态文件后面加上类似版本号的参数：避免浏览器缓存
